let layer

$(function () {
    layui.use(['rate', 'layer', 'form', 'flow', 'util'], function () {
        layer = layui.layer, form = layui.form, flow = layui.flow, util = layui.util;
        util.fixbar({
            click: function (type) {
            }
        });
    });
    $(document).find('.goods-item').find('.box').hover(function () {
        $(this).find('.goods-cover').show()
    }, function () {
        $(this).find('.goods-cover').hide()
    })
})


/**
 * 打开
 * @param id
 */
function productInfo(id) {
    console.log(id)
    location.href = '/product/querySingle?id=' + id
}